import React from 'react';
import {Checkbox, Space} from "antd";
import {log} from "@antv/g2plot/lib/utils";
import {ADMIN_API} from "@/services/admin/typings";
import {CheckboxValueType} from "antd/es/checkbox/Group";

interface RoleCheckBoxProps {
  roles?: ADMIN_API.RoleVO[];
  checkedRoleList: Set<string>,
  onChoseRole: (role: string) => void
  onRemoveRole: (role: string) => void
}

const RoleCheckBox = (props: RoleCheckBoxProps) => {

  return <>
    <Checkbox.Group options={props.roles?.map((role) => ({label: role.role, value: role.roleKey}))}/>
  </>
}

export default RoleCheckBox;
